<template>
    <div class="time">
        <span class="tag">{{tag}}</span>
        <span v-if="time">{{time}}</span>
        <span v-else>无</span>
    </div>
</template>

<script>
export default {
    props: ['tag', 'time']
}
</script>

<style lang='less' scoped>
    .time{
        display: inline-block;
        font-size: 12px;
        .tag{
            display: inline-block;
            padding: 1px 3px;
            color: #fff;
            border-radius: 3px;
            background-color: #0093dd;
        }
    }
</style>
